/////////////////////////////////////////////////////////////////////////
//
// Amuse Engine SDK - resource
// Copyright( c) 2014.  All Rights Reserved
//
// File:		AEStringUtils.cpp
// Author:		Gianluca Belardelli
// Date:		02/10/2014
//
/////////////////////////////////////////////////////////////////////////
#include <AEEngine.h>
#include "utils/AEStringUtils.h"

AEINT32 AEStringUtils::GetExtensionPos( const char *lpFilename )
{
	return -1;
}

const char *AEStringUtils::GetExtension( const char *lpFilename )
{
	AEINT32 nLen = strlen( lpFilename );
	AEINT32 i=0;
	
	for( i=nLen; i>-1; i-- )
	{
		if( lpFilename[i] == '.' )
			break;
	}

	if( i == 0 )
		return 0L;

	return lpFilename+i+1;
}

AEBOOL32 AEStringUtils::HasExtension( const char *lpFile, const char *lpExtension )
{
	return 0;
}

AEBOOL32 AEStringUtils::GetFilenameNoExt( const char *lpFilename, char *lpResult )
{
	return 0;
}

const char *AEStringUtils::GetFilenameFromPath( const char *lpPathName )
{
	return lpPathName;
}
